home *** CD-ROM | disk | FTP | other *** search
- >3. Are there any useful tips for ensuring that your program
- > runs at a similar speed on different speed Amigas, particularly
- > when you're using AMAL?
-
- AC> Use the vertical blank interrupt. In your main program, put "Wait
- AC> Vbl"
- AC> at the end of your main loop, and use a "P" command at the end of a
- AC> loop
- AC> in AMAL.. If your loops are long, there may be a speed decrease on
- AC> slow
- AC> Amigas, but otherwise, your program will be sync'ed to the vertical
- AC> blank, which (apart from differences between NTSC and PAL, which you
- AC> can
- AC> detect with the Ntsc function) is always the same speed.
- Wrong. Sorry Andy, but:
- This assumes that you main loop will be compleated within one screen
- refresh.
- If your main loop takes longer than 1 vbl cycle on an 68000 and less than 1
- on a 68+ then there will be a speed increase on the faster machine.
- Included in the Amospro sample programs is Dithell's Wonderland. It uses a
- loop at the begining of the program. If the loop takes less than a certain
- time, it assumes that the machine is an A3000 (fair assumption) and has an
- additional wait Vbl in it's main loop to slow it down just that little bit
- more.
- Check it out.
- Darryl
-
- -- Via DLG Pro v1.0
-
-
-